<?php

namespace app\common\validate;

use think\Validate;

/**
 * Class CompanyValidate
 * 企业信息验证类
 */
class ConsultValidate extends BaseValidate{
    /**
     * 验证规则
     */
    protected $rule = [
        'consult_room_id|咨询室id'       => 'require|number',
        'name|姓名'       => 'require|min:2|max:128',
        'mobile|电话'  => 'require|isMobile',
        'age|年龄'        => 'require|number',
        'sex|性别'        => 'require|number'

    ];
    /**
     * 提示消息
     */
    protected $message = [

    ];
    /**
     * 验证场景
     */
    protected $scene = [
        'consult' => ['consult_room_id', 'name', 'mobile', 'age', 'sex']
    ];


}
